from django.conf import settings
from fdfs_client.client import Fdfs_client
from rest_framework import serializers
from rest_framework.response import Response
from celery_tasks.detail.tasks import generate_task
from apps.goods.models import SKUImage, SKU


class SKUImageModelViewSet(serializers.ModelSerializer):
    sku = serializers.PrimaryKeyRelatedField(read_only=True)

    class Meta:
        model=SKUImage
        fields=['id','sku','image']


